package cn.bisoft.java.bean.entity;

import java.util.HashSet;
import java.util.Set;

import com.hengpeng.common.util.ObjectHelper;

public class Ticket implements java.io.Serializable, Cloneable
{

	private static final long serialVersionUID = 6402633416590923218L;

	private int amount;

	private Set<AnteCode> anteCodes = new HashSet<AnteCode>(0);

	private String dealTime;

	private String id;

	private Issue issue;

	private String message;

	private double money;

	private int playType;

	private String status;

	private String ticketSerialNo;

	private UserProfile userProfile;

	public Ticket()
	{
		super();
	}

	public int getAmount()
	{
		return this.amount;
	}

	public Set<AnteCode> getAnteCodes()
	{
		return this.anteCodes;
	}

	public String getDealTime()
	{
		return this.dealTime;
	}

	public String getId()
	{
		return this.id;
	}

	public Issue getIssue()
	{
		return this.issue;
	}

	/**
	 * @return ��������ֽ����Ʊϵͳ����ƱͶעʧ�ܣ�����˵��ʧ��ԭ��
	 */
	public String getMessage()
	{
		return this.message;
	}

	/**
	 * @return ��ǰƱ�Ĺ����
	 */
	public double getMoney()
	{
		return this.money;
	}

	/**
	 * @return Ͷע��ʽ
	 */
	public int getPlayType()
	{
		return this.playType;
	}

	/**
	 * @return ������ֽ����Ʊϵͳ����ĳһƱͶע��״̬
	 */
	public String getStatus()
	{
		return this.status;
	}

	/**
	 * @return �����û���Ϣ
	 */
	public UserProfile getUserProfile()
	{
		return this.userProfile;
	}

	/**
	 * @param amount Ʊ�ı�Ͷע��, Ĭ��Ϊ1 ע��
	 */
	public void setAmount(int amount)
	{
		this.amount = amount;
	}

	/**
	 * @param anteCodes ����ĺ���
	 */
	public void setAnteCodes(Set<AnteCode> anteCodes)
	{
		this.anteCodes = anteCodes;
	}

	/**
	 * @param dealTime ������ֽ����Ʊϵͳ����Ͷע����Ͷע�����ʱ�䣬��ʽΪyyyyMMddHHmmss ��
	 */
	public void setDealTime(String dealTime)
	{
		this.dealTime = dealTime;
	}

	/**
	 * @param id Ʊ�ţ���ɹ�����Բ�����Ϣ���id �������
	 */
	public void setId(String id)
	{
		this.id = id;
	}

	/**
	 * @param issue ������Ϣ
	 */
	public void setIssue(Issue issue)
	{
		this.issue = issue;
	}

	/**
	 * @param message ��������ֽ����Ʊϵͳ����ƱͶעʧ�ܣ�����˵��ʧ��ԭ��
	 */
	public void setMessage(String message)
	{
		this.message = message;
	}

	/**
	 * @param money ��ǰƱ�Ĺ����
	 */
	public void setMoney(double money)
	{
		this.money = money;
	}

	/**
	 * @param playType Ͷע��ʽ
	 */
	public void setPlayType(int playType)
	{
		this.playType = playType;
	}

	/**
	 * @param status ������ֽ����Ʊϵͳ����ĳһƱͶע��״̬
	 */
	public void setStatus(String status)
	{
		this.status = status;
	}

	/**
	 * @param userProfile �����û���Ϣ
	 */
	public void setUserProfile(UserProfile userProfile)
	{
		this.userProfile = userProfile;
	}

	/*
	 * ���� Javadoc��
	 * @see java.lang.Object#clone()
	 */
	public Object clone() throws CloneNotSupportedException
	{
		return ObjectHelper.byteClone(this);
	}

	public String getTicketSerialNo()
	{
		return ticketSerialNo;
	}

	public void setTicketSerialNo(String ticketSerialNo)
	{
		this.ticketSerialNo = ticketSerialNo;
	}
}
